package com.ruoyi.system.service;

import com.ruoyi.system.entity.PreventionUnitStopItem;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (PreventionUnitStopItem)表服务接口
 *
 * @author makejava
 * @since 2023-06-26 11:18:11
 */
public interface PreventionUnitStopItemService {

    /**
     * 通过ID查询单条数据
     *
     * @return 实例对象
     */
    PreventionUnitStopItem queryById(Integer id);

    /**
     * 分页查询
     *
     * @param preventionUnitStopItem 筛选条件
     * @return 查询结果
     */
    List<PreventionUnitStopItem> queryByPage(PreventionUnitStopItem preventionUnitStopItem);

    /**
     * 新增数据
     *
     * @param preventionUnitStopItem 实例对象
     * @return 实例对象
     */
    PreventionUnitStopItem insert(PreventionUnitStopItem preventionUnitStopItem);

    /**
     * 修改数据
     *
     * @param preventionUnitStopItem 实例对象
     * @return 实例对象
     */
    PreventionUnitStopItem update(PreventionUnitStopItem preventionUnitStopItem);

    /**
     * 通过主键删除数据
     *
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    PreventionUnitStopItem queryByUnitNew(Integer id);

    List<PreventionUnitStopItem> queryAll(String beginOfDay, String endOfDay);
}
